package com.thd.springboottest.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @author devil13th
 **/
@Data
@TableName("sys_user")
public class SysUser {
    @TableId
    private String userId;
    private String userName;
    private int userSex;
    private String userMail;
    private String userTel;
    private Date userBirthday;
    // 指定逻辑删除字段 1为未删除  0为已删除 ，如果加了该属性会在查询SQL后加上
    @TableLogic(value="1",delval = "0")
    @TableField(value = "user_status")
    private String userStatus;


    private String orgId;


}
